mudbox::Timer Class Reference

#include <kernel.h>

List of all members.


Detailed Description

Helps finding performance issues. See the MB_TIMER macro for more details.

Public Member Functions

  Timer (const char *sName, int &iIndex)
  Use the MB_TIMER macro to construct timer objects instead of using this constructor.
  ~Timer (void)

Static Public Member Functions

unsigned int  Current (void)
  Used internally only.
void  ResetAll (void)
  This function resets all the collected information.
void  LogAll (void)
  This function dumps all the collected data to the log.

Constructor & Destructor Documentation

mudbox::Timer::Timer const char *  sName,
int &  iIndex
 

Use the MB_TIMER macro to construct timer objects instead of using this constructor.

mudbox::Timer::~Timer void   ) 
 

Member Function Documentation

unsigned int mudbox::Timer::Current void   )  [static]
 

Used internally only.

void mudbox::Timer::ResetAll void   )  [static]
 

This function resets all the collected information.

Tipically you call this function before executing the operation which has to be measued (for example at the beginning of a stroke) and you call LogAll() at the end.

void mudbox::Timer::LogAll void   )  [static]
 

This function dumps all the collected data to the log.


mudbox::Timer mudbox::Timer mudbox::Timer mudbox::Timer mudbox::Timer mudbox::Timer mudbox::Timer mudbox::Timer mudbox::Timer mudbox::Timer
mudbox::Timer mudbox::Timer mudbox::Timer mudbox::Timer mudbox::Timer mudbox::Timer mudbox::Timer mudbox::Timer mudbox::Timer mudbox::Timer